if (this._rowLimit && rowIndex >= this._rowLimit ||
this._fillParent && childBox.y2 > availHeight - this.bottomPadding) {
- children[i]._skipPaint = true;
+ children[i].hide();
} else {
children[i].allocate(childBox, flags);
- children[i]._skipPaint = false;
+ children[i].show();
}
columnIndex++;
}
},
- vfunc_paint() {
- this.paint_background();
-
- this.get_children().forEach(c => {
- if (!c._skipPaint)
- c.paint();
- });
- },
-
- vfunc_pick(color) {
- this.parent(color);
-
- this.get_children().forEach(c => {
- if (!c._skipPaint)
- c.paint();
- });
- },
-
vfunc_get_paint_volume(paintVolume) {
// Setting the paint volume does not make sense when we don't have
// any allocation
if (!child.visible)
continue;
- if (child._skipPaint)
- continue;
-
let childVolume = child.get_transformed_paint_volume(this);
if (!childVolume)
return false
},
visibleItemsCount() {
- return this.get_children().filter(c => !c._skipPaint).length;
+ return this.get_children().filter(c => c.is_visible()).length;
},
setSpacing(spacing) {
for (let i = 0; i < children.length; i++) {
let childBox = this._calculateChildBox(children[i], x, y, box);
children[i].allocate(childBox, flags);
- children[i]._skipPaint = false;
+ children[i].show();
columnIndex++;
if (columnIndex == nColumns) {